﻿<sdk:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
    mc:Ignorable="d" x:Class="Lottery.Client.SL.Controls.RefreshLogin" Title="用户登录"
	Style="{StaticResource ChildWindowStyle_ConfirmWindow}">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style TargetType="TextBox">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="Margin" Value="4" />
                <Setter Property="Width" Value="100" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
            <Style TargetType="PasswordBox">
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="4" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Width" Value="100" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid x:Name="gridMain">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid Margin="0,0">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <TextBlock Margin="0,2,2,2" Text="用户名:" VerticalAlignment="Center" Foreground="White" Grid.Row="0" HorizontalAlignment="Right"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,5" Width="140">
                    <TextBox x:Name="tbUserName" Width="132" />
                </StackPanel>
                <TextBlock Margin="0,2,2,2" Text="密码:" VerticalAlignment="Center" Foreground="White" Grid.Row="1" HorizontalAlignment="Right"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="1" Width="140">
                    <PasswordBox x:Name="tbPasswd" Width="132" />
                </StackPanel>
            </Grid>
            <Button x:Name="btnPost" Content="登录" Width="75" Height="23" Margin="4,8,0,0" HorizontalAlignment="Left" Grid.Row="1" Style="{StaticResource buttonStyle0}" FontSize="13" d:LayoutOverrides="GridBox" />
            <Button x:Name="btnExit" Content="退出" Width="75" Height="23" Margin="0,8,4,0" HorizontalAlignment="Right" Grid.Row="1" Style="{StaticResource buttonStyle0}" FontSize="13" d:LayoutOverrides="GridBox" />
        </Grid>
        <Grid x:Name="gridLoading" Visibility="Collapsed" Background="#FF404040">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="150" IsIndeterminate="True"/>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
</sdk:ChildWindow>
